The phrase means experiencing the same negative treatment that one has inflicted on others.
किसी के द्वारा दी गई नकारात्मक उपचार को ही वापस प्राप्त करना
English Usage: He was always pranking others, but when he got some of his own medicine, he didn't like it at all.
Hindi Usage: वह हमेशा दूसरों के साथ प्रैंक करता था, लेकिन जब उसे अपनी दवाई का स्वाद चखाना पड़ा, तो उसे बिलकुल अच्छा नहीं लगा।